using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;
using CommonTools;

namespace shop.Model
{

	
	public class JDepartment : IFastTree
	{
		[Column(IsIgnore =true)]
		public string NodeText => this.Code + " " + this.Name;


		[Column(IsPrimary = true, IsIdentity = true)]
		public int ID { get; set; }

		/// <summary> 类别 </summary>
		[Column(StringLength = 100)]
		public string Class { get; set; }

		/// <summary> 代码 </summary>
		[VarChar(20)]
		public string Code { get; set; }

		/// <summary> 公司-分厂 </summary>
		[Column(StringLength = 100)]
		public string Company { get; set; }

		/// <summary> 审核 默认0 </summary>
		public bool IsCheck { get; set; } = false;

		/// <summary> 删除 默认0 </summary>
		public bool Isdel { get; set; } = false;

		/// <summary> 明细 默认0 </summary>
		public bool IsDetails { get; set; } = false;

		/// <summary> 禁用 默认0 </summary>
		public bool? IsDisabled { get; set; } = false;

		/// <summary> 全称 </summary>
		[Column(StringLength = 100)]
		public string Name { get; set; }

		/// <summary> 负责人 </summary>
		[Column(StringLength = 50)]
		public string Principal { get; set; }

		/// <summary> 报表简称 </summary>
		[Column(StringLength =10)]
		public string ReportShortName { get; set; }

		/// <summary> 助记码 </summary>
		[Column(StringLength = 50)]
		public string ShortNumber { get; set; }

	}

}
